#!/bin/sh
filename=${1%.*}
latex -halt-on-error -shell-escape ${filename}.tex && dvipdf ${filename}.dvi
